package com.xiaoyang.customerservice.feign;

import com.xiaoyang.customerservice.feign.hystrix.CustomerRentFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @auther XiaoYang
 * @DATE 2023/5/5-11:41
 */

/**
 * 这里需要制定熔断的类
 */
@FeignClient(value = "rent-car-service",fallback = CustomerRentFeignHystrix.class)
public interface CustomerRentFeign {

    @GetMapping("/rent")
    public String rent();

}
